package br.com.gip.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.gip.business.DepartamentoBusiness;
import br.com.gip.repository.dao.DepartamentoDao;
import br.com.gip.repository.model.Departamento;

@Service
public class DepartamentoBusinessImpl implements DepartamentoBusiness {

	private static final long serialVersionUID = -7288484102854868012L;

	@Autowired
	private DepartamentoDao departamentoDao;
	
	@Override
	public List<Departamento> buscarDepartamentos() {
		return this.departamentoDao.findAll();
	}

}
